<div class="layui-form-item">
    <label class="layui-form-label">APPID</label>
    <div class="layui-input-inline layui-input-wrap">
        <input type="text" name="config[appid]" value="{$config['appid']}" placeholder="请输入" autocomplete="off" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">支付商户号</label>
    <div class="layui-input-inline layui-input-wrap">
        <input type="text" name="config[mer_id]" value="{$config['mer_id']}" placeholder="请输入" autocomplete="off" class="layui-input">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">支付密钥</label>
    <div class="layui-input-inline layui-input-wrap">
        <input type="text" name="config[mchkey]" value="{$config['mchkey']}" placeholder="请输入" autocomplete="off" class="layui-input">
    </div>
    <div class="layui-form-mid layui-text-em">请在 微信支付商户平台 [账户中心]-[API安全]中设置[APIv3密钥]</div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">PEM证书</label>
    <div class="layui-input-inline layui-input-wrap">
        <input type="hidden" name="config[ficate_file]" value="{$config['ficate_file']}" id="ficate_file"/>
        <button style="float:left;" type="button" class="layui-btn layui-btn-primary uploadjstxt" lay-options="{field:'ficate_file'}">上传</button>
        <div id="ficate_file_text" class="layui-form-mid" style="margin-left:20px;"><if condition="!empty($config['ficate_file'])">已上传</if></div>
    </div>
    <div class="layui-form-mid layui-text-em">apiclient_cert.pem 请在 微信支付商户平台 [账户中心]-[API安全]中设置[API证书]，设置完成后上传</div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">商户API私钥</label>
    <div class="layui-input-inline layui-input-wrap">
        <input type="hidden" name="config[private_key]" value="{$config['private_key']}" id="wxpay_apiclient_cert"/>
        <button style="float:left;" type="button" class="layui-btn layui-btn-primary uploadjstxt" lay-options="{field:'private_key'}">上传</button>
        <div id="private_key_text" class="layui-form-mid" style="margin-left:20px;"><if condition="!empty($config['private_key'])">已上传</if></div>
    </div>
    <div class="layui-form-mid layui-text-em">apiclient_key.pem 请在 微信支付商户平台 [账户中心]-[API安全]中设置[API证书]，设置完成后上传</div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">证书序列号</label>
    <div class="layui-input-inline layui-input-wrap">
        <input type="text" name="config[ficate_serial]" value="{$config['ficate_serial']}" placeholder="请输入" autocomplete="off" class="layui-input">
    </div>
    <div class="layui-form-mid layui-text-em">「商户API证书」的「证书序列号」</div>
</div>

